//
//  Qb_FrienddetailsViewController.m
//  Cd_Qb
//
//  Created by mac on 2018/3/14.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "Qb_FrienddetailsViewController.h"

#import "Qb_FrienddetailsTableViewCell.h"
@interface Qb_FrienddetailsViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UITableView *FrienddetailstableView;
@end

@implementation Qb_FrienddetailsViewController

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.FrienddetailstableView];
    // Do any additional setup after loading the view.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 30;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    Qb_FrienddetailsTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    [cell loadData:@[]];
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 160*AdaptiveScale_W;
}

-(UITableView *)FrienddetailstableView{
    if (!_FrienddetailstableView) {
        _FrienddetailstableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
        _FrienddetailstableView.delegate = self;
        _FrienddetailstableView.dataSource = self;
        _FrienddetailstableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];
        _FrienddetailstableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];
        _FrienddetailstableView.showsVerticalScrollIndicator = NO;
        _FrienddetailstableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        [_FrienddetailstableView registerNib:[UINib nibWithNibName:@"Qb_FrienddetailsTableViewCell" bundle:nil] forCellReuseIdentifier:@"cell"];
        //        WS(weakself);
        //        _JointableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        //            [weakself loadNewData];
        //        } ];
        //
        //        _JointableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
        //            //刷新时候，需要执行的代码。一般是请求更多数据，请求成功之后，刷新列表
        //            [weakself loadMoreData];
        //        }];
    }
    return _FrienddetailstableView;
}

@end
